package com.liefox.service;

import com.liefox.mapper.SufferMapper;
import com.liefox.pojo.Suffer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SufferServiceImpl implements SufferService {
    @Autowired
    private SufferMapper sufferMapper;
    @Override
    public int sufferSignup(Suffer suffer) {
        return sufferMapper.sufferSignup(suffer);
    }

   @Override
    public Suffer sufferSignin(Suffer suffer) {
        return sufferMapper.sufferSignin(suffer);
    }

    @Override
    public int updateSufferInfo(Suffer suffer) {
        return sufferMapper.updateSufferInfo(suffer);
    }

    @Override
    public int sufferUpPw(String Email, String Password) {
        return sufferMapper.sufferUpPw(Email,Password);
    }

    @Override
    public List<Suffer> getSuffer() {
        return sufferMapper.getSuffer();
    }

    @Override
    public Suffer getSufferInfo(String Email) {
        return sufferMapper.getSufferInfo(Email);
    }

    @Override
    public int sufferRecPw(String Email, String Password) {
        return sufferMapper.sufferRecPw(Email,Password);
    }

    @Override
    public String getSufferName(String Email, String Password) {
        return sufferMapper.getSufferName(Email,Password);
    }


}
